//
// Fork.cpp for plazza in /home/peelou/SVN/pizzaillo
// 
// Made by gery baudry
// Login   <baudry_g@epitech.net>
// 
// Started on  Mon Apr 15 16:36:48 2013 gery baudry
// Last update Mon Apr 15 20:37:54 2013 florian dewulf
//

#include	"Fork.hpp"

Fork::Fork()
{
  initialize_fork();
}

Fork::~Fork()
{
}

pid_t		Fork::initialize_fork()
{
  if ((this->_pid = fork()) == -1)
    perror("fork");
  return (this->_pid);
}

/*
**Getter
*/

pid_t		Fork::getPid()
{
  return (this->_pid);
}
